<?php

class UserLogin extends Portlet
{
	public $title='登陆';

	protected function renderContent()
	{
		$form=new LoginForm;
		if(isset($_POST['LoginForm']))
		{
			$form->attributes=$_POST['LoginForm'];
			if($form->validate())
				$this->controller->refresh();
		}
		$this->render('userLogin',array('form'=>$form));
	}
}
